<?php
/**
* Featured Youtube Slider - Joomla Module
* Version			: 2.0
* Created by		: RBO - http://www.rumahbelanja.com
* Created on		: October 2009 (For Joomla 1.5.x) and December 2010 (For Joomla 1.6.x)
* Updated			: December 24rd, 2010
* Package			: Joomla 1.5.x
* License			: http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
*/
// no direct access
defined('_JEXEC') or die('Restricted access');

class modFeaturedYouTubeSliderHelper
{
	function getList(&$params)
	{
		global $mainframe;
		$db			=& JFactory::getDBO();
		
		$query = "SELECT * FROM #__modules WHERE module = 'mod_featured_youtube_slider' AND published = 1";

		$db->setQuery($query);
		$rows = $db->loadObjectList();


		$i		= 0;
		$lists	= array();
		foreach ( $rows as $row )
		{
			$lists[$i]->id = htmlspecialchars( $row->id );
			$i++;
		}

		return $lists;
	}
}